package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 传感设备表
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_device_node")
public class DeviceNode implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer shopId;
	private Integer deviceId;
	private Integer nodeIndex;
	private Integer	insIndex;
	private String terminalName;
	private Double currentValue;

	/**
	 *  设备类型  2 - 测温度 3 - 测电流  4 - 测重量
	 */
	private Integer deviceType;
	/**
	 * 测温设备位置类型 1-制粒机 2-锅炉 3-油罐
	 */
	private Integer positionType;
	private Double xishuA;
	private Double xishuB;

	private Double addValue;

	private Integer powerState;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date powerOpenTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date powerOffTime;

	/**
	 *  筒仓直径
	 */
	private Double storeDiameter;

	/**
	 *  显示的最小数
	 */
	private Double minShowValue;

	/**
	 *  是否是椭圆  0 - 正圆   1 - 椭圆
	 */
	private Integer isEllipse;
	/**
	 *  长半轴  单位米
	 */
	private Double longHalfShaft;
	/**
	 *  短半轴  单位米
	 */
	private Double shortHalfShaft;

	/**
	 *  圆柱部分高度
	 */
	private Double storeHeight;

	/**
	 *  仓体 总体积
	 */
	private Double storeVolume;
	/**
	 *  空余部分体积
	 */
	private Double storeEmptyVolume;
	/**
	 *  剩余体积
	 */
	private Double storeOilVolume;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastWarnTime;

	private Integer feedId;
	private String feedName;

	@TableField(exist = false)
	private String deviceNum;

	@TableField(exist = false)
	private String valueInfo;

	@TableField(exist = false)
	private String shopName;

	@TableField(exist = false)
	private Integer shopType;

	@TableField(exist = false)
	private Integer deviceShowType;
}
